<%--
  Created by IntelliJ IDEA.
  User: LENOVO
  Date: 2015/9/2
  Time: 18:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%
  request.setCharacterEncoding("utf-8");
  String priid=request.getParameter("priid");
%>
<jsp:useBean id="tanswer" class="com.lihuanyu.upcOA.model.answerTable"></jsp:useBean>
<jsp:useBean id="answer" class="com.lihuanyu.upcOA.service.answer"></jsp:useBean>
<jsp:setProperty name="tanswer" property="*"></jsp:setProperty>


<html>
<head>
    <title></title>
</head>
<body>

<%
  //out.print(request.getParameter("path"));
System.out.print(tanswer.getPriid());
  System.out.print(tanswer.getAnswer());
  if(answer.dbanswer(tanswer)==0) {%>
<script>
  alert("发送失败，请检查网络！！");
  window.history.back();
</script>
<%}
else{
%>
<script>
  alert("发送成功！！");
  window.history.back();
</script>
<%
  }
%>

</body>
</html>
